Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tmknom/symmetric-encrypt-decrypt-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.2
Choose a base ref
...
head repository: tmknom/symmetric-encrypt-decrypt-action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.3
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jan 20, 2025

  1. fix: encode base64 string as a single line during encryption

    If the encrypted string is long, the following error may occur during decryption:
    
    ```
    bad decrypt
    40C795C66F7F0000:error:1C800064:Provider routines:ossl_cipher_unpadblock:bad decrypt:../providers/implementations/ciphers/ciphercommon_block.c:124:
    ```
    
    To prevent this error, use the -A flag during decryption.
    The -A flag ensures that the Base64-encoded string is written as a single line without line breaks.
    For more details, refer to the following documentation:
    
    - [OpenSSL Base64 Encoding Documentation](https://wiki.openssl.org/index.php/Enc#Base64_Encoding)
    
    The document notes:
    
    > These flags tell OpenSSL to apply Base64-encoding before or after the cryptographic operation.
    > The -a and -base64 are equivalent. If you want to decode a base64 file it is necessary to use the -d option.
    > **By default the encoded file has a line break every 64 characters**.
    > To suppress this you can use in addition to -base64 the -A flag.
    > This will produce a file with no line breaks at all. You can use these flags just for encoding Base64 without any ciphers involved.
    tmknom committed Jan 20, 2025
    Configuration menu
    Copy the full SHA
    6d56fbf View commit details
    Browse the repository at this point in the history
  2. Merge pull request #4 from tmknom/fix/add-support-for-long-text

    fix: encode base64 string as a single line during encryption
    tmknom authored Jan 20, 2025
    Configuration menu
    Copy the full SHA
    f82452a View commit details
    Browse the repository at this point in the history
Loading