Skip to content

Instantly share code, notes, and snippets.

View i-yusuf's full-sized avatar
🖥️
Focusing

Yusuf Işık i-yusuf

🖥️
Focusing
  • İstanbul
View GitHub Profile
@mertceyhan
mertceyhan / RSAEncryptionHelper.kt
Last active May 26, 2024 02:08
This class helps to you for in RSA encryption and decryption operation in Kotlin.
import android.util.Base64
import java.security.KeyFactory
import java.security.PrivateKey
import java.security.PublicKey
import java.security.spec.PKCS8EncodedKeySpec
import java.security.spec.X509EncodedKeySpec
import javax.crypto.Cipher
/**
*
@martinhj
martinhj / Button.test.js
Created November 29, 2019 12:35
Jest / @testing-library/react-native test examples
import React from 'react';
import Button from '.';
import { AlertButton, SubmitButton } from '.';
import { fireEvent, render, wait } from '@testing-library/react-native';
import Icon from '../Icon';
const caption = 'Test button';
const color = '#f00f0f';
const accessibilityLabel = 'This is a test button';