File Mover Blog

  • 29 Feb

    How-To AES-256 Encrypt and Decrypt Files in LimagitoX File Mover

    We’ve added the following AES-256 Encrypt and Decrypt Pascal Script functions in v2020.2.29.0:

    • Function psSimpleDecryptFile(Source, Destination, Key: String; IVAtBeginning: Boolean): Boolean;
    • Function psSimpleEncryptFile(Source, Destination, Key: String; IVAtBeginning: Boolean): Boolean;

    psSimpleEncryptFile and psSimpleDecryptFile can be used to cypher/decypher any file content using AES-256 as encryption standard. The code uses a safe block chaining mode like CFB and PKCS7 padding. If ‘IVAtBeginning‘ is TRUE, a random Initialization Vector will be computed, and stored at the beginning of the output binary buffer. It will generate the binary key using SHA-256 over the supplied ‘Key’ string, and will use AES-NI hardware instructions if your CPU supports it.

    Some screenshots to get you started. Let’s begin with the encryption script. Source will be the directory of files you want to Encrypt. As Destination you’ll need to add a Pascal Script.

    The Script itself, don’t forget to adjust the ctOut path and the ctKey Const:

    Const
      ctOut = 'C:\Test\Out\Encrypted\';
      ctKey = '*-+Key0123456789';
    Begin
      // ... add your code here
      If psSimpleEncryptFile(psFilePath+psFilename, ctOut+psFileName, ctKey, True) then
      Begin
        psExitCode:= 1;
        psLogWrite(1, '', 'Encryption Successful: ' + psFilename + psFilePath);
      End
      Else
      Begin
        psExitCode:= 0;
        psLogWrite(1, '', 'Encryption Error: ' + psFilePath + psFilename);
      End;
    End.
    

    AES-256.Encryption.Setup

    In case you want to Decrypt Files, Source will be the directory containg the encrypted files (AES-256). As Destination you’ll need to add a different Pascal Script. Same here, don’t forget to adjust the ctOut path and the ctKey Const.

    Const
      ctOut = 'C:\Test\Out\Encrypted\Decrypted\';
      ctKey = '*-+Key0123456789';
    Begin
      psExitCode:= 1;
      // ... add your code here
      If psSimpleDecryptFile(psFilePath+psFilename, ctOut+psFileName, ctKey, True) then
      Begin
        psExitCode:= 1;
        psLogWrite(1, '', 'Decryption Successful: ' + psFilename);
      End
      Else
      Begin
        psExitCode:= 0;
        psLogWrite(1, '', 'Decryption Error: ' + psFilename);
      End;
    End.
    

    AES-256.Decryption.Setup

    If you need any help, please let us know.

    Regards,

    Limagito Team

     

  • 16 Feb

    How-To Get Client ID and Secret for Google Drive in LimagitoX File Mover

    Some updated screenshot since last post: https://limagito.com/using-google-drive-client-id-secret/.

    Before you can use ‘Google Drive’ in our File Mover, you need to register a new application in the Google APIs Console.

    • When Google Drive API not enabled yet, please select “ENABLE”

    • When Google Drive API already enabled, please select “MANAGE”

    • Select “CREATE CREDENTIALS”

    • Credentials Setup configuration, part 1

    • Credentials Setup configuration, part 2

    • Credentials Setup configuration, part 3

    • Credentials Setup configuration, part 4

    • Credentials Setup configuration, part 5

    Here you will find your Client ID and Client Secret needed for the Google Drive Setup within our File Mover.

    • Google Drive Setup LimagitoX File Mover

    LimagitoX-Drive-Setup

    If you need any help, please let us know.

    Limagito Team

    By Limagito-Team Google , ,
  • 04 Feb

    How-to use Gmail to send emails from LimagitoX File Mover

    We’ve added some screenhots to get you started using the GMail SMTP server.

    • Server Setup

    LimagitoX-SMTP-GMail-Setup

    • Security Setup

    LimagitoX-SMTP-GMail-Security-Setup

    • We are using OAuth2 authentication so we also need to fill in this setup

    LimagitoX-SMTP-GMail-OAuth2-Setup

    • Test email Setup (using the Rule Events)

    • Trigger email, result Successful

    If you need any help, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team SMTP , ,
1 90 91 92 93 94 95 96 136
SEARCH