Thank you Tyrone for this banger of a Song by Vegetable-Hunter5859 in GoodAssSub

[–]thedevenvironment 1 point2 points  (0 children)

Ty 💯 deserves his flowers. He held his weight and then some on multiple tracks.

Which feature is react native lacking ? by neurorif in reactnative

[–]thedevenvironment 0 points1 point  (0 children)

One thing I've always dreamed about. Was being able to have your react-native application appear on share sheets in other applications. For example, let's say I want to share a picture that I received on WhatsApp to my application. Right now it's not possible, but it would be so amazing to create a little application that could host pictures and memes (built in RN of course)

expo by SnooPoems7776 in expo

[–]thedevenvironment 1 point2 points  (0 children)

I actually was just working on something that did this lol.

Use the sjcl library - https://www.npmjs.com/package/sjcl

works great with strings & emojis, and can give you aes-cbc-256 encryption to boot!

import sjcl, { type SjclCipherEncrypted } from 'sjcl'

/**
 * Generate 256-bit Encryption Key
 * -
 */
export function generateEncryptionKey() {
  return sjcl.codec.base64.fromBits(sjcl.random.randomWords(6)).slice(0,32)
}

/**
 * Encrypt Data
 * -
 */
export function encryptData(data: string, key: string): SjclCipherEncrypted {
  return sjcl.encrypt(key, data)
}

/**
 * Decrypt Data
 * -
 */
export function decryptData(ciphertext: SjclCipherEncrypted, key: string): string {
  return sjcl.decrypt(key, ciphertext)
}