Skip to main content

Posts

Showing posts with the label Encrypt Decrypt password or text in AXapta 2012

Encrypt Decrypt password or text in AXapta 2012

Encrypt or Decrypt in AX 2012 You can test following code in job before applying to main form. CryptoApi cryptoApi; Container container1,container2; ContainerClass concls; ; cryptoApi = new CryptoApi(99999999999); concls= new ContainerClass(["AbcCls"]); container1 = CryptoApi.encrypt(concls.toBlob()); container2 = ContainerClass::blob2Container(CryptoApi.decrypt(container1)); info(Strfmt("Encrypted:%1",BinData::dataToString(container1))); info(con2str(container2)); I hope you get your answer.