# BlowFish String Encryption

**URL:** <https://forum.juce.com/t/blowfish-string-encryption/25752>\
**Category:** General JUCE discussion\
**Created:** [December 28, 2017, 6:15am UTC](https://forum.juce.com/t/blowfish-string-encryption/25752 "2017-12-28T06:15:12Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![joe-04-04](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/joe-04-04/32/2566_2.png) [@joe-04-04](https://forum.juce.com/u/joe-04-04)\
**Post date:** [December 29, 2017, 5:21pm UTC](https://forum.juce.com/t/blowfish-string-encryption/25752/9 "2017-12-29T17:21:01Z")

</div>

I am a little bit confused, I figured that using:

`String::toHexString (textToEncrypt.getHexValue64());`

would return a hex string. I realize that `getHexValue64()` returns an `int64`, but I thought that once that it is passed into the static method `String::toHexString()`, then a hex string would return. Though I probably misunderstood what the `IntegerType Number` parameter of the `toHexString()` method meant.

Also, thanks for the tip, I’ll look into the `MemoryOutputStream` class.

Yeah, my general issue with JUCE is that, most of the time, I don’t know that certain items even exist within the library, so I can’t use them because I don’t even know of them (because it is so massive). Or, if I know what I need to do, finding the correct class might be a bit of a challenge at times if the categories and labels in my head aren’t the same as the wording of the actual class. These are not issues with JUCE, but mostly my lack of familiarity with it.

---

_[View the full topic](https://forum.juce.com/t/blowfish-string-encryption/25752)._
