class Main
{
public static function main()
{
var hash = haxe.Md5.encode(???myverysecretpassword???);
trace(hash);
// the result is consistent on all platforms and it is
// eb18a77e09d2eaa6896637e73f4ff94f
}
}
Summary
In this chapter, you saw four fundamental tools that are cross - platform and very commonly used. In the
rest of the book those tools are used a lot and you will probably want to refer to this chapter several
times. The topics of the chapter have been:
XML parsing and the XML API
EReg API and regular expression patterns
Temporized and delayed executions using the Timer class
Creating cryptographic hashes of passwords and other strings using the MD5 class
In the next chapter you learn how to build sophisticated and dynamic websites using Neko.
??‘
??‘
??‘
??‘
Building Websites with HaXe
The haXe development environment was born with the main purpose of developing web
applications. A web application is composed of several components, both client - and
server - side. The client aspect can be resolved with haXe targeting Flash or JavaScript whereas
Neko manages the server - side.
Pages:
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440