Skip to content

Instantly share code, notes, and snippets.

View tharindu's full-sized avatar

Tharindu Madushanka tharindu

View GitHub Profile
@tharindu
tharindu / String+Encryption.swift
Last active January 10, 2024 06:38
DES, 3DES, and AES Encryption and Decryption in Swift
import Foundation
import CommonCrypto
import Security
/// Extension for Symmetric Encryption and Decryption with DES, 3DES, AES algorithms
extension String {
/// Encrypts message with DES algorithm
func desEncrypt(key:String) -> String? {
@tharindu
tharindu / .gitlab-ci.yml
Created April 4, 2017 08:29
Gitlab CI Android Integration with SDK 25+
image: openjdk:8-jdk
variables:
ANDROID_COMPILE_SDK: "25"
ANDROID_BUILD_TOOLS: "25.0.2"
ANDROID_SDK_TOOLS: "25.2.5"
before_script:
- apt-get --quiet update --yes
- apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
//
// HVRequest.swift
// Hiveage
//
// Created by Tharindu on 12/27/15.
// Copyright © 2015 Vesess Inc. All rights reserved.
//
import Foundation
import Alamofire