HI Morten,
Use cryptoblob2binary and cryptoblob2str from Global. If you want to protect your data using the WinApi_Server Class (cryptUnProtectData and cryptProtectData), be aware that the crypt / decrypt from Windows use a checksum from the machine doing the crypt, you need this machine to decrypt the data....(In addition, the encryption and decryption usually must be done on the same computer.) http://msdn.microsoft.com/en-us/library/aa380261(VS.85).aspx Mit freundlichen Grüßen / Best regards / Med venlig hilsen Jesper Jørgensen / Abt. NMT-XD Senior Product Manager arvato systems | Technologies GmbH An der Autobahn 18 33311 Gütersloh [EMAIL PROTECTED] <blocked::blocked::blocked::mailto:[EMAIL PROTECTED]> Phone: +49 5242 / 40 80 54 Fax: +49 5242 / 40 80 40 Mobile: +49 172 / 571 03 34 http://www.as-T.biz <blocked::blocked::http://www.as-t.biz/> arvato systems | Technologies GmbH Joachim-Jungius-Str. 9, 18059 Rostock Geschäftsführung: Erwin Pietz, Matthias Moeller Amtsgericht Rostock - HRB 7497 ________________________________ "Der Inhalt dieser Nachricht oder eventueller Anlagen ist vertraulich und ausschließlich für den bezeichneten Adressaten bestimmt. Bitte stellen Sie sicher, dass die Information in dieser Nachricht ausschließlich an die adressierten Personen gelangt. Sollte diese Nachricht versehentlich an Sie gesendet worden sein, dann informieren Sie bitte umgehend den Absender und löschen Sie die Nachricht. Vielen Dank." "The information in this e-mail and any attachments is confidential. The information must only be held in areas that have controlled and limited access to the addressed persons. If this e-mail has been sent to you in error, please immediately notify the sender and delete the e-mail. Thanks." ________________________________ ________________________________ Von: development-axapta@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Morten Aasheim Gesendet: Montag, 2. Juni 2008 10:59 An: development-axapta@yahoogroups.com Betreff: [development-axapta] CryptoAPI in 4.0 not available Hi everyone. In Ax 3.0, I used Textbuffer to encrypt and decrypt. However in Ax 4.0, this feature is removed, and as far as I can understand, replaced by CryptoAPI. CryptoAPI is used by class\WebSession. The problem is can't use it myself. Testjob: CryptoAPI crypto; str s; container data; ContainerClass blob; ; s = 'This text will be encrypted'; blob = new ContainerClass([s]); crypto = new CryptoAPI(1234567890); data = crypto.encrypt(blob.toBlob()); info('Decrypted: '+ any2str([crypto.decrypt(data)])); Unfortunately this doesn't work. I get the error "CryptoAPI not available". Please help! I really need some encryption ASAP J Best regards, Morten Aasheim Peritus [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]