Currently trying to encrypt plaintext that is 5 characters long into a 12 character encrypted string. I want to be able to specify a unique IV (not randomly generated), a unique key, and use DES. My current code requires the plaintext to be 8 characters long (5 character name plus 3 spaces).
Golang: How do I encrypt plain text that is 5 characters long with DES and CBC?
2k views Asked by phil o.O At
1
There are 1 answers
Related Questions in GO
- Go Fiber and HTMX - HX-Trigger header is changed to Hx-Trigger, which is not what HTMX is listening for
- Golang == Error: OCI runtime create failed: unable to start container process: exec: "./bin": stat ./bin: no such file or directory: unknown
- Handling both JSON and form values in POST request body with unknown values in Golang
- invalid transaction: Transaction failed to sanitize accounts offsets correctly
- Golang lambda upload image into s3 static website
- Is there a way to get a list of selected module versions, but only for modules within the pruned graph?
- Save Interface in DB golang
- ERROR: column "country" is of type text[] but expression is of type record (SQLSTATE 42804)
- Trying to update the version.go file with the release tag from GitHub actions but its failing
- How can I optimize this transposition table for connect 4 AI?
- const declaration - How to evaluate expressions at compile time?
- How add array of authors for unique user in database in Goland IDE?
- Why is the main goroutine not blocked after write in unbuffered channel?
- Insert & Retrieve from a channel in same main function throws "goroutine 1 [chan receive]: main.main() /path exit status 2" error
- Gob error when decoding array of structs: decoding into local type but received remote type
Related Questions in BASE64
- How to use custom font during html to pdf conversion?
- Converting img src data to octet-stream
- System.FormatException: Entry is not valid Base64 string
- GitLab "Upload a File" API returns "file is invalid" after POST
- Adding a reset button for my digital signature
- I have a problem with decoding from base64
- Facing decryption error while decrypting encrypted payload using RSA Cipher Algorithm for GST and E-Way Bill authentication
- Base 64 : Illegal base64 character 3 Exception
- Media Recorder API encoding audio/mp4 stream to base64 string
- React Native preview Base64 encoded files
- Decoding base64 img in react getting error
- Trouble with HMAC Signature Verification Between Go and PHP for Encrypted URL
- How to read a .bin file and display the extact content of it in a table cell?
- Unable to decrypt Zoom AppContext - InvalidTag Error
- I cannot get Gmail to Base64decode correctly
Related Questions in DES
- 3TDES with 24 byte block size in Delphi Enceryption Compendium
- Having issues between my server and client communicating with eachother in java
- NodeJS "createDecipheriv" method isn't working with encrypted text in Java
- desCBC algorithm supported by BouncyCastle FIPS in non-approved mode?
- Issue encrypting with DES in PHP
- How to pan the default encryption methods in CryptoJS DES to java code
- Decrypting a string using DES-ECB in Rust
- How to replicate oracle DBMS_OBFUSCATION_TOOLKIT.DESEncrypt() in C# using System.Security.Cryptography.DES?
- How do you convert this DES encryption code from Java code to JavaScript?
- Using CommonCrypto for 3DES authentication with mifare DESFire card using Core NFC and Swift
- How do I solve the there is no Crypto package error in Python?
- How does "openssl rsa -des3" store informations in the private key?
- Encryption DES (ECB)
- How to decrypt a string in DES decrypt?
- SNMP V3 CBC-DES: How to perform encryption of PDU with an 8 bytes long encryption key? (DES, Prev IV)
Related Questions in CBC-MODE
- Making AES Encryption in Swift similar to Android
- Decrypting an encoded base64 into a token to extract claims using AES-CBC in C#
- Golang - AES-128-CBC Decryption returns invalid/strange characters before decrypted message
- Issue in SubtleCrypto: decrypt() method in production build. Works fine on localhost
- Python Blowfish encryption doesn't give same output as Blowfish.js
- Bouncy Castle Library Support to Switch from AES_CBC to AES_CFB encryption
- Getting 'error reading input file' and 'bad magic number' when I try to decrypt an aes-128-cbc encrypted file
- what is key in CBC mode in `openssl genrsa -aes-128-cbc -passout pass:qwerty0123456789 -out private.pem 2048`?
- Bouncy Castle and CryptoJS vs Pycryptodome and Cryptography - who's right and how to decrypt the data in Python?
- incremental AES encryption in CBC mode not working?
- Encryption with Crypto.js and cryptoswift generates different encryption cipher text
- PBKDF2 key is decrypting AES without the same salt?
- AES CBC algorithm/padding in java/angular
- Best way to XOR two 128 bit values in MSVC?
- Is CBC 128bit encryption vulnerable if I expose a start-of-text pattern?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I have already faced this problem. This is because of padding issue. The code you wanted is a
Code link You Can test it at go playground.