Re: Encryption question



Why not just hardcode the key in the program? Is this safe or can any
program be de-compiled?

The main problem I have had with the Cipher API is that when I save
encrypted data in a file I can not longer query that file or use
UPDDTA.


On 2 Jun 2004 09:53:43 -0700, bonzai@xxxxxxxxx (Chicago Mike) wrote:

I want to protect some sensative information in a file. What I was
thinking of doing was encrypting the data in the field in question.
I've looked at the Cipher API, but I think I'm going to have a problem
with it. If I understand it correctly the API takes:

Text to be encrypted
Key
Encryption method

and returns:

encrypted data

And then basically the same thing to reverse the process. Now this
means I'll need to store a key somewhere (if I want to be able to
retrieve the data) which kind of defeats the purpose. Has anyone here
ever tried anything like this?

I was thinking about maybe storing the key in a PF that nobody has the
rights to but 1 program that would do the encrypting/decrypting.
However this seems kludgy.

Also, if anyone has ever written a procedure that uses this API in
RPG(ILE), I'd appreciate if you could post it.

.



Relevant Pages

  • Re: Formatting USB flashdrive
    ... but only if the hard drive uses NTFS ... rather than FAT32 - is that correct? ... System and your encrypted data will most likely be tied to one ... "Best practices for the Encrypting File System" ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: 2 security issues
    ... As long as the machine doing the encrypting doesn't ... made that information secure. ... The key point was that you didn't have to crack the encrypted data, ... locked the door but left the key under the mat. ...
    (Focus-Linux)
  • Re: Encrypted files
    ... If it truely is an EFS issue, then you will need to decide how ... valuable the encrypted data is to you. ... not recall the password of the old encrypting account. ... and then try to do a repair/upgrade install of it (this will get ...
    (microsoft.public.windowsxp.security_admin)
  • Re: EFS- manipulated UserPassword
    ... For security reasons are the laptops never conected to our network. ... The encrypted data have to be ... > since the encrypting accounts are not in the local SAM. ...
    (microsoft.public.win2000.security)