Alpha Video Training
Results 1 to 7 of 7

Thread: encryption

  1. #1
    Member
    Real Name
    Walter
    Join Date
    Jun 2003
    Location
    South Africa
    Posts
    456

    Default encryption

    Hi all,

    If I use the encrypt_string() function to encrypt a value using my Alpha 5 program, will someone else using Alpha 5 be able to decrypt the string and get the same value ??

    For instance :
    encrypt_string(varcValue) where varcvalue = "I like alpha" and get "C+a\A&]$K2QED$VJX%byX0N"J6J)F"Q#U0L-\?^/S;H(J$Y=NR"
    will you get the same value if you decrypt the above?

  2. #2
    "Certified" Alphaholic Keith Hubert's Avatar
    Real Name
    Keith Hubert
    Join Date
    Jul 2000
    Location
    London, UK
    Posts
    6,930

    Default RE: encryption

    Walter,

    Here's what I got from the interactive window.

    test=encrypt_string("I like alpha")
    ?test
    = "i+a\A&w$yUX["

    I do not think there is any logical way you can decode this economically. Just by adding "do" into the string changed the encrption.

    new=encrypt_string("I do like alpha")
    ?new
    = "\c)Rd*R(oCQ'q$|"

    Hope this answers your question.

    Regards

    Keith Hubert

    Guild Member
    London.

  3. #3
    Member
    Real Name
    Walter
    Join Date
    Jun 2003
    Location
    South Africa
    Posts
    456

    Default RE: encryption

    Hello Keith,

    If I encrypt "I do like Alpha" in the interactive window I get the following:
    "\c)Rd*R(oCQ'q$|" , the same as yours.
    but if I encrypt the same value in my form, I get the follwing:
    "C+f0N[y$K%Q8M$V-X%z&"\N"J6J)F"Q#U0L-\?^/S;H(J$Y=NR"
    but my table field is set up as c, 50

    Does this have anything to do with the length of my field?

    Have a nice day
    Walter

  4. #4
    "Certified" Alphaholic Keith Hubert's Avatar
    Real Name
    Keith Hubert
    Join Date
    Jul 2000
    Location
    London, UK
    Posts
    6,930

    Default RE: encryption

    Hi Walter,

    Probably yes, but what is your real concern? Do you think someone will be able to decrypt your data. Alpha developers are more interested in how an applicaton was built rather than the data in the tables. If you are so concerned, not only can you encrypt a table but paswword it too so the encryption cannot be switched off.


    Regards

    Keith Hubert

    Guild Member
    London.

  5. #5
    Former Alpha Employee JerryBrightbill's Avatar
    Real Name
    Jerry Brightbill
    Join Date
    Apr 2000
    Posts
    5,173

    Default RE: encryption

    Walter

    The value from any field includes the blank spaces used to fill the field. Therefore the encrypted value is different. The real question is does it decrypt to the same value. Attached is a text file from the interactive window.

    Jerry

  6. #6
    Member
    Real Name
    Walter
    Join Date
    Jun 2003
    Location
    South Africa
    Posts
    456

    Default RE: encryption

    Thanks for the reply,

    No, I am not concerned about other developers, I am working on a activation key for one of my programs, that must be activated every month.
    Wanted to make sure that the values from my client will be the same as on my pc. As long as the length and key values are the same.

    I studied the archives on encryption as well, got some nice ideas there. Especially where you encrypt some "junk" values into the real values you want to work with.

    Thanks for the help
    Walter

  7. #7
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,701

    Default RE: encryption

    Yes, anything encrypted using encrypt_string() can be decrypted with decript_string():


    ?decrypt_string(encrypt_string("Hello World"))

    = "Hello World"


    However you can specify an encryption key, which would then also need to be known in order to perform the decryption:


    secret = encrypt_string("Hello World","this is my encryption key")

    ?secret

    = "lfsv]0
    ?decrypt_string(secret)

    = "PL&{Jrw{:[2"

    ?decrypt_string(secret,"this is my encryption key")

    = "Hello World"


    -Lenny

Similar Threads

  1. Missing Encryption Key
    By Rawlings in forum Alpha Five Version 5
    Replies: 8
    Last Post: 10-08-2005, 12:12 AM
  2. Encryption
    By Duane Pederson in forum Alpha Five Version 5
    Replies: 3
    Last Post: 02-18-2004, 08:03 AM
  3. Encryption?
    By Phil Danz in forum Alpha Five Version 4
    Replies: 3
    Last Post: 02-08-2004, 07:17 AM
  4. Encryption
    By Mike Thompson in forum Alpha Five Version 5
    Replies: 1
    Last Post: 02-27-2003, 06:28 AM
  5. Encryption
    By martinwcole in forum Alpha Five Version 5
    Replies: 4
    Last Post: 12-30-2002, 09:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •