# Cryptography Help

**URL:** https://community.thunkable.com/t/cryptography-help/1673110
**Category:** Questions about Thunkable X
**Created:** [January 14, 2022, 7:38pm UTC](https://community.thunkable.com/t/cryptography-help/1673110 "2022-01-14T19:38:50Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![sc\_games](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sc_games/32/124266_2.png) [@sc\_games](https://community.thunkable.com/u/sc_games)
#### Post date: [January 14, 2022, 7:38pm UTC](https://community.thunkable.com/t/cryptography-help/1673110/1 "2022-01-14T19:38:50Z")

</div>

Hi I am creating a texting app using firebase and would like to encode and decode the messages as i am able to see messages on firebase console

---

<div class="post-metadata">

### Author: ![sc\_games](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sc_games/32/124266_2.png) [@sc\_games](https://community.thunkable.com/u/sc_games)
#### Post date: [January 15, 2022, 8:42am UTC](https://community.thunkable.com/t/cryptography-help/1673110/2 "2022-01-15T08:42:59Z")

</div>

Hello can any one help?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 15, 2022, 3:15pm UTC](https://community.thunkable.com/t/cryptography-help/1673110/3 "2022-01-15T15:15:58Z")

</div>

Try this.

This is Base64 encryption

[https://x.thunkable.com/projectPage/60ba3f2079d6dc001150abe7](https://x.thunkable.com/projectPage/60ba3f2079d6dc001150abe7)

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [January 15, 2022, 3:24pm UTC](https://community.thunkable.com/t/cryptography-help/1673110/4 "2022-01-15T15:24:42Z")

</div>

Nice @muneer!!!

This block combo would work too if coded for!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/5/d517826aedd636ca13a966d012612f744f175606.jpeg)

---

<div class="post-metadata">

### Author: ![sc\_games](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sc_games/32/124266_2.png) [@sc\_games](https://community.thunkable.com/u/sc_games)
#### Post date: [January 15, 2022, 3:52pm UTC](https://community.thunkable.com/t/cryptography-help/1673110/5 "2022-01-15T15:52:04Z")

</div>

Thank you so much for the help @muneer and @jared

---

<div class="post-metadata">

### Author: ![sc\_games](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sc_games/32/124266_2.png) [@sc\_games](https://community.thunkable.com/u/sc_games)
#### Post date: [January 15, 2022, 3:55pm UTC](https://community.thunkable.com/t/cryptography-help/1673110/6 "2022-01-15T15:55:50Z")

</div>

How would you go about decrypting

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 15, 2022, 6:41pm UTC](https://community.thunkable.com/t/cryptography-help/1673110/7 "2022-01-15T18:41:40Z")

</div>

> [@sc\_games](#):
>
> decrypting

In JavaScript the functions are atob() and btoa().

You can create a new HTML file and just change the function. Everything else is the same.

**[Edit]**

I changed the sample project to have both Encrypt and Decrypt. @sc_games you can remix the project to test the changes.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 15, 2022, 8:29pm UTC](https://community.thunkable.com/t/cryptography-help/1673110/8 "2022-01-15T20:29:28Z")

</div>

> [@jared](#):
>
> if coded for

Yes, currently it is using the `receiveMessage` function. For the **combo** to work the code needs to be changed to `receiveMessageWithReturnValue` which I have not previously used.

---

<div class="post-metadata">

### Author: ![sc\_games](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sc_games/32/124266_2.png) [@sc\_games](https://community.thunkable.com/u/sc_games)
#### Post date: [January 16, 2022, 8:26am UTC](https://community.thunkable.com/t/cryptography-help/1673110/9 "2022-01-16T08:26:45Z")

</div>

Thank you for the help!

---

<div class="post-metadata">

### Author: ![sc\_games](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sc_games/32/124266_2.png) [@sc\_games](https://community.thunkable.com/u/sc_games)
#### Post date: [January 16, 2022, 10:13am UTC](https://community.thunkable.com/t/cryptography-help/1673110/10 "2022-01-16T10:13:51Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/c/6c8ca640a01f84680855cf37d1cf78fbf3aeefa6.png)  
What is wrong with my code? @muneer I am having problems

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 16, 2022, 10:27am UTC](https://community.thunkable.com/t/cryptography-help/1673110/11 "2022-01-16T10:27:14Z")

</div>

> [@sc\_games](#):
>
> What is wrong with my code?

`Value From Post Message` does **not** work. Use `Post Message` as in my example.

**[Edit]**

Just a reminder note, there was a reported problem in the `Web Viewer` that it does not work with HTML files added in the project (packaged html).

It should work using the `web test` from the computer and if you find it not working from the mobile then you would need to save the HTML file in a cloud/server and use the URL of the file for the `Web Viewer`.

---

<div class="post-metadata">

### Author: ![sc\_games](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sc_games/32/124266_2.png) [@sc\_games](https://community.thunkable.com/u/sc_games)
#### Post date: [January 16, 2022, 8:00pm UTC](https://community.thunkable.com/t/cryptography-help/1673110/12 "2022-01-16T20:00:14Z")

</div>

Hi it still not working I have used firebase storage to store the html files is that ok @muneer ?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/4/24ee5775824293626dcb94d50419ae8fec859717.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/e/8e14ed9e220bdbc18fb08ae00ba51c6c8d15f6e7.png)

---

<div class="post-metadata">

### Author: ![sc\_games](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sc_games/32/124266_2.png) [@sc\_games](https://community.thunkable.com/u/sc_games)
#### Post date: [January 23, 2022, 10:18am UTC](https://community.thunkable.com/t/cryptography-help/1673110/13 "2022-01-23T10:18:03Z")

</div>

please help @muneer

---

<div class="post-metadata">

### Author: ![sc\_games](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sc_games/32/124266_2.png) [@sc\_games](https://community.thunkable.com/u/sc_games)
#### Post date: [January 23, 2022, 10:22am UTC](https://community.thunkable.com/t/cryptography-help/1673110/14 "2022-01-23T10:22:13Z")

</div>

Also i believe your template project is not working anymore

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 23, 2022, 12:51pm UTC](https://community.thunkable.com/t/cryptography-help/1673110/15 "2022-01-23T12:51:26Z")

</div>

> [@sc\_games](#):
>
> firebase storage to store the html files

This will not work.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [April 23, 2022, 12:51pm UTC](https://community.thunkable.com/t/cryptography-help/1673110/16 "2022-04-23T12:51:50Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
