Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

3des

how to use RSA to encrypt files (huge data) in C#

May 29, 2023 by Tarik

RSA can only encrypt data blocks that are shorter than the key length so what you normally do is Generate a random key of the correct length required for AES (or similar). Encrypt your data using AES or similar using that key Encrypt the random key using your RSA key Then you publish both the … Read more

Categories c# Tags 3des, c++, cryptography, encryption-asymmetric, rsa Leave a comment

How do I use 3DES encryption/decryption in Java?

February 14, 2023 by Tarik

Your code was fine except for the Base 64 encoding bit (which you mentioned was a test), the reason the output may not have made sense is that you were displaying a raw byte array (doing toString() on a byte array returns its internal Java reference, not the String representation of the contents). Here’s a … Read more

Categories java Tags 3des, encryption, java Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa