Does anyone has any idea on how the Navision encrypt / decrypt works in NAV 2013 ?

dipanwita_c
Member Posts: 11
I am trying to encrypt a text file and save the encrypted file in the disk. Then, use the encrypted file to decrypt and write the contents back to another text file. For the encryption / decryption, I am using the NAV codeunit 824 Encryption Mgt. functions. Although the encryption part seems to work, but when I try to decrypt the file, I get the following error:
This message is for C/AL programmers: A call to Microsoft.Dynamics.Nav.Encryption.RSAMachineKeyProvider.Decrypt failed with this message: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
Do anyone have any idea on working with encryption / decryption in NAV 2013 ?
This message is for C/AL programmers: A call to Microsoft.Dynamics.Nav.Encryption.RSAMachineKeyProvider.Decrypt failed with this message: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
Do anyone have any idea on working with encryption / decryption in NAV 2013 ?
0
Answers
-
Could the problem maybe be that you are trying to use Decryption on something else than a Text variable? Its seems that the method expects a variable of type Text (or Base-64 String).0
-
Hi !
No, I am using a text variable only. That is why I am confused why the system throws this error0 -
Hi Dipanwita
How did you manage to encrypt a text file ?, i am trying to encrypt a text with n line no's of records and also when i am decrypt the file, system throws an error "Unable to decrypt data. The data was encrypted using a different key.".
0 -
no answer on this
running into this exact issue today... all i am looking for is a simple 'jumble/encryption' so prying eyes cant read the UserName...
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions