This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const crypto = require('crypto'); | |
// Encryption settings | |
const algorithm = 'aes-256-cbc'; // Algorithm to use | |
const iterations = 100000; // Number of iterations for PBKDF2 | |
const keyLength = 32; // Key length for AES-256 | |
const ivLength = 16; // IV length for AES | |
// Function to derive a key and IV from a passphrase and salt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"version":1,"resource":"file:///c%3A/WinNMP/WWW/my-meal-plan/resources/js/Pages/Profile/Edit.vue","entries":[{"id":"TzFv.vue","timestamp":1668954964498},{"id":"eRrD.vue","timestamp":1668954984235},{"id":"44Cz.vue","timestamp":1668960233588},{"id":"sPqM.vue","timestamp":1668960295647},{"id":"dThe.vue","timestamp":1668960308853},{"id":"u0tZ.vue","timestamp":1668960328226},{"id":"Yi8X.vue","timestamp":1668960439724},{"id":"oFhb.vue","source":"undoRedo.source","timestamp":1668960450795},{"id":"U4m0.vue","timestamp":1669066962729},{"id":"rIuT.vue","timestamp":1669066975499},{"id":"YNYs.vue","timestamp":1669066991913}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Spatie\MediaLibrary\HasMedia; | |
use Illuminate\Database\Eloquent\Model; | |
use Spatie\MediaLibrary\InteractsWithMedia; | |
use Illuminate\Database\Eloquent\Factories\HasFactory; | |
class Image extends Model implements HasMedia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<template v-for="post in allPosts" :key="post.id"> | |
<h1>{{ post.title }}</h1> | |
<p>{{ post.content }}</p> | |
</template> | |
<span ref="loadMore"/> | |
</template> | |
<script setup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<Checkbox v-for="person in people" :id="person.id" :label="person.name" :data="person" v-model="selectedPeople" /> | |
<pre>{{ selectedPeople }}</pre> | |
</template> | |
<script setup> | |
import { ref } from 'vue' | |
import Checkbox from './Checkbox.vue' |