somed3v3loper Well-Known Member Licensed User Longtime User Aug 1, 2019 #1 Hello all, I need to upload a file to a php hosting and want PHP to encrypt it in a way that is compatible with B4X so I can download it later from B4X and decrypt it . Is this possible ? Do we have a working example ? Files can be large . Or should I encrypt it (in B4J for example) before uploading ? Regrards
Hello all, I need to upload a file to a php hosting and want PHP to encrypt it in a way that is compatible with B4X so I can download it later from B4X and decrypt it . Is this possible ? Do we have a working example ? Files can be large . Or should I encrypt it (in B4J for example) before uploading ? Regrards
MarkusR Well-Known Member Licensed User Longtime User Aug 1, 2019 #2 my question is why u need Encrypt/Decrypt it, you can't use https ? or you will store data Encrypted at web hosting ? see similar threads B4X Library B4XEncryption B4A Library AES Encrypt/Decrypt (Encryption/Decryption) B4A and B4J library B4A Class [B4A/B4J] LockBox3 (Delphi) AES ECB/CBC encrypting / decrypting Upvote 0
my question is why u need Encrypt/Decrypt it, you can't use https ? or you will store data Encrypted at web hosting ? see similar threads B4X Library B4XEncryption B4A Library AES Encrypt/Decrypt (Encryption/Decryption) B4A and B4J library B4A Class [B4A/B4J] LockBox3 (Delphi) AES ECB/CBC encrypting / decrypting
somed3v3loper Well-Known Member Licensed User Longtime User Aug 1, 2019 #3 MarkusR said: my question is why u need Encrypt/Decrypt it, you can't use https ? or you will store data Encrypted at web hosting ? see similar threads B4X Library B4XEncryption B4A Library AES Encrypt/Decrypt (Encryption/Decryption) B4A and B4J library B4A Class [B4A/B4J] LockBox3 (Delphi) AES ECB/CBC encrypting / decrypting Click to expand... I want to secure the files even if someone got the download links Upvote 0
MarkusR said: my question is why u need Encrypt/Decrypt it, you can't use https ? or you will store data Encrypted at web hosting ? see similar threads B4X Library B4XEncryption B4A Library AES Encrypt/Decrypt (Encryption/Decryption) B4A and B4J library B4A Class [B4A/B4J] LockBox3 (Delphi) AES ECB/CBC encrypting / decrypting Click to expand... I want to secure the files even if someone got the download links
KMatle Expert Licensed User Longtime User Aug 2, 2019 #4 Use the search function and you'll find examples. AES-256 is perfect for that. Read the file, convert it to bytes, encrypt in B4x, upload it and decrypt whenever you need to. Use the Encryption lib. Upvote 0
Use the search function and you'll find examples. AES-256 is perfect for that. Read the file, convert it to bytes, encrypt in B4x, upload it and decrypt whenever you need to. Use the Encryption lib.
MarkusR Well-Known Member Licensed User Longtime User Aug 2, 2019 #5 you can upload the Encrypted files from b4a/b4j with lib okhttputils2. at server side you can store it in file system or database. the long blob field type in mysql can store 4 GB. with a virtual server hosting it should be possible to access a database direct via jRDC2. u have to balance pro and cons using files in a database. Upvote 0
you can upload the Encrypted files from b4a/b4j with lib okhttputils2. at server side you can store it in file system or database. the long blob field type in mysql can store 4 GB. with a virtual server hosting it should be possible to access a database direct via jRDC2. u have to balance pro and cons using files in a database.